//
//  AliPayApp.swift
//  kz
//
//  Created by Wai Yin Chan on 15/9/2017.
//  Copyright © 2017 Tech_001. All rights reserved.
//

import Foundation
import UIKit

class AliPayApp : WebViewAppProtocol {
    var name: String = "支付宝"
    var identityHostName = "ds.alipay.com"
    var appUrl: URL?
    var requestUrl: URL?
    var downloadUrlString: String = "https://itunes.apple.com/hk/app/id333206289?mt=8"
    
    func updateAppUrl() {
        let params = self.requestUrl!.queryItemsDictionary
        if let scheme = params["scheme"] {
            if let url = URL(string: scheme) {
                self.appUrl = url
            }
        }

    }
}
